{
	name:"CircleCut",
	importCommand:[{
		key:"Tool",
		path:"./paint_tool/lines/point-line.shape"
	}],
	onClick(pos,e,meta){
		let path = this.queryCircles(pos)
		if(path)
			this.onCommit(path,pos)
		else
			this.toast("请点击圆边框上一点")
	},
	onCommit(path,pos){
		let cp = this.loadMngByAction(path.action).getCircleMeta(path)
		let dis = Math.abs(Math.distance(pos,cp)-cp.r)
		if(dis>4){
			this.toast("请点击圆边框上一点")
			return
		}
		this.step.push(Math.calcCutPos1(cp,pos))
		this.commit(Action.PointLine,this.name)
	}
}